package com.wolan.rpc.client;

import com.wolan.rpc.framework.RpcFramework;
import com.wolan.rpc.server.HelloService;

/**
 * Created by fei.chen on 2016/3/28.
 */
public class Client {
    public static void main(String[] args) throws Exception {
        HelloService service = RpcFramework.refer(HelloService.class, "127.0.0.1", 1234);
        for (int i = 0; i < 10; i ++) {
            String hello = service.hello("World" + i);
            System.out.println(hello);
        }
    }
}
